home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games Extra 1996 June
/
Amiga Games Extra 1996 #6.iso
/
userbox
/
publicdomain
/
gnutar
/
source.lzh
/
source
/
sasinclude
/
sys
/
wait.h
< prev
Wrap
C/C++ Source or Header
|
1995-09-16
|
813b
|
40 lines
#ifndef _WAIT_
#define _WAIT_
/* unimplemented signals yet... */
#include <signal.h>
#define SIGPIPE SIG_MAX
#ifndef AMIGA_UNIX_NETWORK
/* #define S_IFCHR 0000000 */
/* #define S_IFBLK 0000000 */
#define S_ISUID 0000000 /* SAS/C misses these */
#define S_ISGID 0000000
#define S_ISVTX 0000000
#else
/* #define S_IFCHR 0020000 */
/* #define S_IFBLK 0000000 */ /* ?! */
#define S_ISUID 0004000 /* SAS/C misses these */
#define S_ISGID 0002000
#define S_ISVTX 0001000
#endif /* AMIGA_UNIX_NETWORK */
#define WIFSTOPPED(w) (((w) & 0xff) == 0x7f)
#define WIFSIGNALED(w) (((w) & 0xff) != 0x7f && ((w) & 0xff) != 0)
#define WIFEXITED(w) (((w) & 0xff) == 0)
#define WSTOPSIG(w) (((w) >> 8) & 0xff)
#define WTERMSIG(w) ((w) & 0x7f)
#define WEXITSTATUS(w) (((w) >> 8) & 0xff)
#endif /* _WAIT_ */